package com.zretc.dao;

import com.zretc.entity.Refund;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author 周文涛
 * 用户退票dao层
 */
public interface RefundMapper {
    // 添加
    int insert(Refund refund);
    // 删除
    int delete(String refundId);
    // 更新状态
    int update(@Param("refundId")String refundId,@Param("refundStatus")Integer refundStatus);
    // 查看详情(单)
    Refund getRefundById(String refundId);
    // 多条件查询
    List<Refund> getRefundList(Map<String,String> condition);
    // 根据订单号查询是否存在申请
    Refund getRefundByOrdersId(String ordersId);
}
